<!DOCTYPE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <title>myGrid Shims Library - <%=h self.controller.controller_name.capitalize %></title>
    <%= javascript_include_tag :defaults %>
    <%= stylesheet_link_tag 'scaffold', 'shimlib' %>
  </head>
  <body>
    <div id="container"><!--CONTAINER START-->    
      <div id="bannerarea"><!--BANNER AREA START-->
        <div id="mygridlogo">
          <%= link_to image_tag("mygrid_logo.png"), 
              "http://www.mygrid.org.uk", :target => "blank" %>
        </div>
        <div id="banner">
          <%= link_to image_tag("shims_lib.png"), :controller => "home", 
              :action => "index" %>
        </div><!--BANNER END-->
      
        <div id="loginbox"><!--LOGIN START-->
          <% unless logged_in? %>
            <%=h "You are not logged in."%><br/><br/>
            <%= link_to "Login", :controller => "home", :action => "login" %> | 
            <%= link_to "Register", :controller => "users", :action => "new" %><br/>
          <% else %>
            <%=h "Logged in as #{current_user.name.capitalize}..."%><br/><br/>
            <%= link_to "Logout", :controller => "home", :action => "logout" %><br/>
          <% end %>
        </div><!--LOGIN END-->
      
      </div><!--BANNER AREA END-->
      <% if flash[:notice] -%>
        <div id="notice">
          <%= flash[:notice] %>
        </div>
      <% end -%>  
              
      <div id="columns"><!--COLUMNS START-->
          
        <div id="leftsidebar"><!--LEFT SIDEBAR START-->
          <div id="linkbox"><!--LINKBOX START-->
            <%= render :partial => "layouts/links_box" %>
          </div><!--LINKBOX END-->
        </div> <!-- LEFT SIDEBAR END-->
				
        <div id="main"><!--MAIN START-->
          <%= yield :layout %>
            <div id="footer">
            <br /><br /><br /><hr/>
              Hosted at the School of Computer Science, <%= link_to "University of Manchester", "http://www.manchester.ac.uk", 
              :target => "blank" %>, UK.  Copyright 2009 - All Rights Reserved.<br />
              Sponsered by <%= link_to "EPSRC", "http://www.epsrc.ac.uk", 
              :target => "blank" %>.
            </div>                              
        </div><!--MAIN END-->
                
        <div id="rightsidebar">  <!--RIGHT SIDEBAR START-->
          <div id="searchbox"><!--SEARCHBOX START-->
            <fieldset>
              <legend>Quick Search</legend>
              <%= render :partial => 'search/search_form' %>
            </fieldset>
          </div><!--SEARCHBOX END-->
          <div id="typebox"><!--TYPEBOX START-->
            <%= render :partial => "layouts/type_box" %>
          </div><!--TYPEBOX END-->
          <div id="catbox"> <!--CATBOX START-->
            <%= render :partial => "layouts/categories_box", :locals => {
                :attribute_name => "category"} %>
          </div><!--CATBOX END-->
          <div id="tagbox"><!--TAGBOX START-->
            <%= render :partial => "layouts/annotations_box", :locals => {
                :attribute_name => "tag"} %>
          </div><!--TAGBOX END-->
        </div><!--RIGHT SIDEBAR END-->  
      </div><!--COLUMNS END-->   
      

    
    </div><!--CONTAINER END-->

  </body>
</html>
